package run.theo.mallorder.controller;

import com.alibaba.csp.sentinel.annotation.SentinelResource;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import run.theo.mallorder.service.MallOrderService;

/**
 * project name: IntelliJ IDEA
 * Date: 2022/10/17 19:03
 *
 * @PackageName: run.theo.mallorder.controller
 * @ClassName: SentinelController
 * @Author: Theo
 * @Version:
 * @Description:
 */
@RestController
@RequestMapping("/sentinel")
public class SentinelController {


    @RequestMapping("/s/m1")
    public String m1(){
        return "m1";
    }
    @Autowired
    private MallOrderService  mallOrderService;


    @RequestMapping("/s/m2")
    public String m2(){

        return mallOrderService.exceptionTest();
    }

}
